<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>九九乘法口诀表</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            padding: 20px;
        }
        .multiplication-table {
            border-collapse: collapse;
            margin: 20px;
        }
        .multiplication-table td {
            padding: 10px 15px;
            text-align: center;
            border: 1px solid #ddd;
        }
        .odd-row {
            background-color: #f0f8ff;
            font-weight: bold;
        }
        .title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 24px;
            color: #333;
        }
    </style>
</head>
<body>
    <div>
        <div class="title">九九乘法口诀表</div>
        <table class="multiplication-table" id="multiplicationTable"></table>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const table = document.getElementById('multiplicationTable');
            for (let i = 1; i <= 9; i++) {
                const row = document.createElement('tr');
                if (i % 2 !== 0) {
                    row.classList.add('odd-row');
                }

                for (let j = 1; j <= i; j++) {
                    const cell = document.createElement('td');
                    cell.textContent = `${j} × ${i} = ${i * j}`;
                    row.appendChild(cell);
                }

                for (let k = i + 1; k <= 9; k++) {
                    const emptyCell = document.createElement('td');
                    row.appendChild(emptyCell);
                }

                table.appendChild(row);
            }
        });
    </script>
</body>
</html></html>